package com.example.forum.config;

import com.example.forum.utils.MailUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSender;

/**
 * 功能描述:
 *
 * @author Lenovo
 * @date 2025/1/17
 */
@Configuration
public class MailConfig {
    /*@Bean
    @ConditionalOnProperty(prefix = "spring.mail",name = "username")
    public MailUtil mail(JavaMailSender javaMailSender, MailProperties mailProperties){
        return new MailUtil(javaMailSender,mailProperties);
    }*/
}
